#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i = 0;
	int n = 0;
	scanf("%d", &n);
	for (int j = 1; j <= n; j++)
	{
		for (int i = 1; i <= j; i++)
		{
			printf("%2d * %-2d= %-2d ", i, j, j * i);
		}
		printf("\n");
	}
	return 0;
}